import { EntitySchema } from '@mikro-orm/core';

export class ImsYzdKpLiveSet {
  id!: number;
  type!: boolean;
  txTlUrl?: string;
  txTlKey?: string;
  txLlUrl?: string;
  txLlKey?: string;
  alTlUrl?: string;
  alTlKey?: string;
  alLlUrl?: string;
  alLlKey?: string;
  uniacid!: number;
}

export const ImsYzdKpLiveSetSchema = new EntitySchema({
  class: ImsYzdKpLiveSet,
  properties: {
    id: { primary: true, type: 'number' },
    type: { type: 'boolean' },
    txTlUrl: { type: 'string', length: 255, nullable: true },
    txTlKey: { type: 'string', length: 255, nullable: true },
    txLlUrl: { type: 'string', length: 255, nullable: true },
    txLlKey: { type: 'string', length: 255, nullable: true },
    alTlUrl: { type: 'string', length: 255, nullable: true },
    alTlKey: { type: 'string', length: 255, nullable: true },
    alLlUrl: { type: 'string', length: 255, nullable: true },
    alLlKey: { type: 'string', length: 255, nullable: true },
    uniacid: { type: 'number', index: 'uniacid' },
  },
});
